package com.itheima.mall.dubbo.api.ums;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.mall.commons.page.PageResult;
import com.itheima.mall.entity.domain.query.ums.AdminQuery;
import com.itheima.mall.entity.domain.ums.Admin;
import com.itheima.mall.entity.domain.ums.Role;
import com.itheima.mall.entity.domain.vo.ums.AdminVo;

import java.util.List;
import java.util.Map;

public interface UmsAdminService extends IService<Admin> {

    void delete(Integer id);

    AdminVo info(String username);

    PageResult pageInfo(String keyword, Integer pageNum, Integer pageSize);

    void roleUpdate(AdminQuery adminQuery);

    List<Role> role(Integer adminId);

    void adminUpdate(Admin admin);

    void updatePassword(Map<String, Object> map);

    void updateStatus(Integer id, Admin admin);

    Admin admin(Integer id);


}
